/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#include "../import/head.h"
#include "../../../../xoskit/xos_interface/include/vld.h"
#include "../data_struct/head.h"
#include "../xos/head.h"
#include <iostream>
#include <atomic>
#include <new>

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 

typedef xos_stl::lock_free::lock_free_queue< xos::i_release, xos_test::thread_lock > data_queue;

// 
// 入口函数
// 
int main( int argc, const char  * argv[] )
{
    using namespace xos_test;
    using namespace xos_stl;
	using namespace std;
    int ret = 0;

    {
        os::init();
        pool::init();
    }

    {
        data::AUTO_LIST list;
        int num = 11;
        for( int i = 0; i < num; ++i )
        {
            data::T* pT = 0;
            init_pool_item( pT );
            list.push_back( pT );
        }
    }

    {
        pool::term();
        os::term();
    }

	cout << "xos_stl" << endl;
    return ret;
}
